<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>衔接信息</title>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css" />
    <script src="/static/js/common/common.js" type="text/javascript"></script>
    <link href="/webjars/miniui/css/demo.css" rel="stylesheet" type="text/css" />
    <link href="/static/css/default.css" rel="stylesheet" type="text/css" />
    <style>
        div {
            text-align:left;
            top:1%;
        }
        table {
            text-align:left;
            width:80%;
            margin:0 0 0 15%;
        }
        .td {
            font-size:16px;
            text-align:left;
            width:50%;
        }
        td span {
            font-size:16px;
            color:#0b80ef;
        }
        .legend {
            font-size:16px;
        }
        .inUnitName {
            color: #362b36;
        }
    </style>
</head>
<body>
<div style="height:100%;width: 100%;overflow-x: auto;overflow-y: auto;">
    <div style="height:98%;width: 100%;overflow-x: auto;overflow-y: auto;">
        <table align="center" cellspacing="8">
            <tr>
                <td colspan="4" align="left">
                    <div class="legend">基本信息:</div>
                </td>
            </tr>
            <tr>
                <td class="td">姓名:<span class="check-content-7395">${(pname)!'无'}</span></td>
                <td class="td">证件号:<span class="check-content-7395">${(idnum)!'无'}</span></td>
            <tr>
                <td colspan="4" align="left">
                    <div class="legend">出监评估:</div>
                </td>
            </tr>
            <tr>
                <td class="td">是否三无:<span class="check-content-7395">${(obj.sanwu)!'无'}</span>
                    <#if (obj.sw)?? && obj.sw == "1">
                        &nbsp;&nbsp;(
                        <#if (obj.wujia)?? && obj.wujia == "true">
                            <span class="check-content-7395">无家可归</span>
                        </#if>
                        <#if (obj.wuqin)?? && obj.wuqin == "true">
                            <span class="check-content-7395">无亲可投</span>
                        </#if>
                        <#if (obj.wuye)?? && obj.wuye == "true">
                            <span class="check-content-7395">无业可就</span>
                        </#if>
                        )
                    </#if>
                </td>
                <td class="td">是否三假:<span class="check-content-7395">${(obj.sanjia)!'无'}</span>
                    <#if (obj.sj)?? && obj.sj == "1">
                        &nbsp;&nbsp;(
                        <#if (obj.jxm)?? && obj.jxm == "true">
                            <span class="check-content-7395">假姓名</span>
                        </#if>
                        <#if (obj.jsf)?? && obj.jsf == "true">
                            <span class="check-content-7395">假身份</span>
                        </#if>
                        <#if (obj.jhj)?? && obj.jhj == "true">
                            <span class="check-content-7395">假住址</span>
                        </#if>
                        )
                    </#if>
                </td>
            </tr>

            <tr>
                <td class="td">案犯类别:<span class="check-content-7395">${(obj.aftype)!'无'}</span></td>
                <td class="td">
                    <#if "${localCode !''}"=='140000'>
                            是否有再犯罪倾向:
                    <#else>
                            是否有违法犯罪倾向:
                    </#if>
                    <span class="check-content-7395">${(obj.sfywffzqx)!'无'}</span></td>
            </tr>
            <tr>
                <td class="td">危险性评估:<span class="check-content-7395">${(obj.wxxpg)!'无'}</span></td>
                <td class="td">家庭变化:<span class="check-content-7395">${(obj.jtbh)!'无'}</span></td>

            </tr>
            <tr>
                <td class="td">是否重大疾病、残疾:<span class="check-content-7395">${(obj.canji)!'无'}</span></td>
                <td class="td">有无固定住所:<span class="check-content-7395">${(obj.gdzs)!'无'}</span></td>
            </tr>
            <tr>
                <td class="td"> 认罪态度:<span class="check-content-7395">${(obj.rczc)!'无'}</span></td>
                <td class="td">社会交往:<span class="check-content-7395">${(obj.shjw)!'无'}</span></td>
            </tr>
            <tr>
                <td class="td">职业技能:<span class="check-content-7395">${(obj.zyjn)!'无'}</span></td>
                <td class="td">刑释后可能遇到的困难:<span class="check-content-7395">${(obj.xshkn)!'无'}</span></td>
            </tr>
            <tr>
                <td class="td">释放后是否戒毒:<span class="check-content-7395">${(obj.xd)!'无'}</span></td>
                <td class="td">附件:<span><form style="display: inline-block"><input type="button" value="查看" onclick="onFileUpload(1)" /></form></span></td>
            </tr>
            <#if "${stateXj !'无'}"!='0'&&"${stateXj !'无'}"!='4'>
            <tr>
                <td colspan="4" align="left">
                    <div class="legend">
                        <span class="inUnitName">监所</span>衔接信息:
                    </div>
                </td>
            </tr>
            <tr>
                <td class="td">姓名:<span class="check-content-7395">${(obj.xm)!'无'}</span></td>

                <td class="td">衔接途径:<span class="check-content-7395">${(obj.tujing)!'无'}</span></td>
            </tr>
            <tr>
                <td class="td">帮教对象类别:<span class="check-content-7395">${(obj.type)!'无'}</span></td>

                <td class="td" style="color:#f1062a">帮教对象衔接方式:
                    <#if (obj.type1)?? >
                        <#if obj.type1=="02">
                            <span class="td1" style="color:#f1062a">${(obj.yiban)!'无'}</span>
                        <#else>
                            <span class="td1" style="color:#f1062a">${(obj.zhongdian)!'无'}</span>
                        </#if>
                    </#if>
                </td>
            </tr>
            <#if fhfs =='监狱送回'>
                <tr>
                    <td class="td">送回时间:
                        <#if (obj.jhsj)?? >
                            <#if obj.jhsj=="">
                                <span class="check-content-7395">${(obj.jhsj)!'无'}</span>
                            <#else>
                                <span class="check-content-7395">${(obj.jhsj?date('yyyy-MM-dd'))}</span>
                            </#if>
                        </#if>
                    </td>

                    <td class="td">送回地点:<span class="check-content-7395">${(obj.jhdd)!'无'}</span></td>
                </tr>
             <#elseif fhfs == '人员自返'>
                 <tr>
                     <td class="td">返回时间:
                         <#if (obj.jhsj)?? >
                             <#if obj.jhsj=="">
                                 <span class="check-content-7395">${(obj.jhsj)!'无'}</span>
                             <#else>
                                 <span class="check-content-7395">${(obj.jhsj?date('yyyy-MM-dd'))}</span>
                             </#if>
                         </#if>
                     </td>

                     <td class="td">返回地点:<span class="check-content-7395">${(obj.jhdd)!'无'}</span></td>
                 </tr>
             <#else>
                 <tr>
                     <td class="td">接回时间:
                         <#if (obj.jhsj)?? >
                             <#if obj.jhsj=="">
                                 <span class="check-content-7395">${(obj.jhsj)!'无'}</span>
                             <#else>
                                 <span class="check-content-7395">${(obj.jhsj?date('yyyy-MM-dd'))}</span>
                             </#if>
                         </#if>
                     </td>

                     <td class="td">接回地点:<span class="check-content-7395">${(obj.jhdd)!'无'}</span></td>
                 </tr>
            </#if>

            <#--增加"监狱固话:"，将联系电话修改为"监狱手机号码:"-->
            <tr>
                <td class="td">
                    <span class="inUnitName">监所</span>联系人:<span class="check-content-7395">${(obj.lianxiren)!'无'}</span>
                </td>
            </tr>
            <tr>
                <td class="td"><span class="inUnitName">监所</span>手机号码:<span class="inPhone"></span></td>
                <td class="td"><span class="inUnitName">监所</span>固话:<span class="inTel"></span></td>
            </tr>
            <tr>
                <td class="td">附件:<span><form style="display: inline-block"><input type="button" value="查看"
                                                                                   onclick="onFileUpload(12)" /></form></span></td>
            </tr>
            <#if "${stateXj !'无'}"!='2'>
                <tr>
                    <td colspan="4" align="left">
                        <div class="legend">司法所衔接信息:</div>
                    </td>
                </tr>
                <tr>
                    <td class="td">衔接状态:<span class="check-content-7395">${(obj.statexj)!'无'}</span></td>
                    <td class="td">通知公安机关落实管控措施:<span class="check-content-7395">${(obj.gongan)!'无'}</span></td>

                </tr>
                <tr>
                    <td class="td">安置帮教人员类别:<span class="check-content-7395">${(obj.azbjrylb)!'无'}</span></td>
                    <td class="td">备注:<span class="check-content-7395">${(obj.remark)!'无'}</span></td>
                </tr>
                <#if (obj.gg)?? && (obj.gg)=="1" >
                    <tr>
                        <td class="td">公安联系人:<span class="check-content-7395">${(obj.gglxr)!'无'}</span></td>
                    </tr>
                    <tr>
                        <td class="td">公安手机号码:<span class="gaPhone"></span></td>
                        <td class="td">公安固话:<span class="gaTel"></span></td>
                    </tr>
                </#if>
                <tr>
                    <td class="td">附件:<span><form style="display: inline-block"><input type="button" value="查看"
                                                                                       onclick="onFileUploadXj(10)" /></form></span></td>
                </tr>
            </#if>
            </#if>
        </table>
    </div>
</div>
<script type="text/javascript">
    mini.parse();

    $(document).ready(function(){
        checkContent(1);
    });

    // 查看附件 taskId=1 代表信息补录
    function onFileUpload(taskId) {
        commonEdit("/upload/user/uploadAppendixfile/see?1=1&id&priNum=${priNum!'无'}&taskId=" + taskId, null, null, 600, 400, true, true, true);
    }

    //查看附件 taskId=10 代表衔接证据
    function onFileUploadXj(taskId) {
        commonEdit("/upload/user/uploadAppendixfile/see?1=1&id=${(obj.id)!'无'}&priNum=${priNum!'无'}&taskId=" + taskId, null, null, 600, 400, true, true, true);
    }

    //分割手机号固话
    function cutTelPhone(data, tel, phone){
        var place = data.indexOf('|');
        var arr = data.split("|");
        if(place!='-1'){
            if(place==0){
                $(phone).html(arr[1])
            }else if(place==data.length){
                $(tel).html(arr[0])
            }else {
                $(tel).html(arr[0])
                $(phone).html(arr[1])
            }
        }else {
            if(data.length==11){
                $(phone).html(data)
            }else {
                $(tel).html(data)
            }
        }
    }

    //分割手机号固话
    $(function (){
        var dianhua = '${(obj.dianhua!'无')}';
        var galxfs = '${(obj.galxfs!'无')}';
        var level = '${(obj.level!'无')}';
        if(level=='01'){
            $(".inUnitName").html('监狱')
        }else if(level=='02'){
            $(".inUnitName").html('看守所')
        }else if(level=='05'){
            $(".inUnitName").html('社矫中心')
        }else {
            $(".inUnitName").html('监所')
        }
        if(dianhua!=null&&dianhua!=''){
            cutTelPhone(dianhua, ".inTel", ".inPhone");
        }
        if(galxfs!=null&&galxfs!=''){
            cutTelPhone(galxfs, ".gaTel", ".gaPhone");
        }
    });

</script>
</body>
</html>